Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for arrow expressions and matches expressions #32

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

jaybosamiya
Copy link
Collaborator

@jaybosamiya jaybosamiya commented Feb 19, 2024

Adds support for newly added -> and matches expression syntax:

proof fn uses_arrow_matches_1(t: ThisOrThat)
    requires
        t is That ==> t->v == 3,
        t is This ==> t->0 == 4,
{
    assert(t matches ThisOrThat::This(k) ==> k == 4);
    assert(t matches ThisOrThat::That { v } ==> v == 3);
}

@jaybosamiya jaybosamiya merged commit 25d604c into main Feb 19, 2024
8 checks passed
@jaybosamiya jaybosamiya deleted the arrow-and-matches branch February 19, 2024 17:52
jaybosamiya added a commit that referenced this pull request Feb 19, 2024
Important changes:
* Add support for new spec_fn
* Update handling for fn_trait_types
* Add support for const params
* Add support for opens_invariants
* Improve handling of comples self-params (e.g., `tracked '&a self`)
* Introduce `#[verusfmt::skip]` (#31)
* Add support for new `->` and `matches` expressions (#32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant